import { createRouter, createWebHistory } from 'vue-router';

const routes = [
   // 涨停榜
  { path: '/', redirect: '/topGainer' },
  // 涨停榜
  { path: '/topGainer', component: ()=>import('../views/TopGainer.vue') },
  // 跌停榜
  { path: '/topLoser', component:  ()=>import('../views/TopLoser.vue') },
  // 智能推荐
  { path: '/recommendation', component:  ()=>import('../views/Recommendation.vue') },
  // 历史预测
  { path: '/history', component:  ()=>import('../views/HistoricalPredictions.vue') },
  // 持仓管理
  { path: '/personal', component:  ()=>import('../views/PortfolioManager.vue') },
  { path: '/user', component:  ()=>import('../views/UserView.vue') }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;